import serviceAxios from "../index.js";
export const getAttendanceList = (params) => {
    return serviceAxios({
        method: "get",
        url: "/api/v1/attendance/getattendancelist",
        params,
    })
}

export const getAttendanceSummary = (params) => {
    return serviceAxios({
        method: "get",
        url: "/api/v1/attendance/getattendancesummary",
        params,
    })
}

export const getEmployeeList = () => {
    return serviceAxios({
        method: "get",
        url: "/api/v1/employee/getemployee",
    })
}

export const addEmployee = (employee) => {
    return serviceAxios({
        method: "post",
        url: "/api/v1/employee/create",
        data: employee,
        contentType: "application/json",
        headers: {
            "Content-Type": "application/json",
            "token": localStorage.getItem("token"),
            "Accept": "*/*"
        }
    })
}